<template>
  <footer class="site-footer">
    <div class="footer-container">
      <div class="footer-grid">
        <!-- 平台介绍部分 -->
        <div class="footer-section">
          <h4 class="footer-title">
            学习平台
          </h4>
          <p class="footer-description">
            提供高质量的在线课程，帮助你掌握前沿技术和专业知识。
          </p>
          <div class="social-icons">
            <a
              href="#"
              class="social-icon"
            >
              <i class="fa-brands fa-github" />
            </a>
            <a
              href="#"
              class="social-icon"
            >
              <i class="fa-brands fa-twitter" />
            </a>
            <a
              href="#"
              class="social-icon"
            >
              <i class="fa-brands fa-linkedin" />
            </a>
          </div>
        </div>

        <!-- 关于我们部分 -->
        <div class="footer-section">
          <h4 class="footer-title">
            关于我们
          </h4>
          <ul class="footer-links">
            <li><a href="#">公司简介</a></li>
            <li><a href="#">讲师团队</a></li>
            <li><a href="#">合作伙伴</a></li>
            <li><a href="#">加入我们</a></li>
            <li><a href="#">联系方式</a></li>
          </ul>
        </div>

        <!-- 支持部分 -->
        <div class="footer-section">
          <h4 class="footer-title">
            支持
          </h4>
          <ul class="footer-links">
            <li><a href="#">帮助中心</a></li>
            <li><a href="#">常见问题</a></li>
            <li><a href="#">意见反馈</a></li>
            <li><a href="#">隐私政策</a></li>
            <li><a href="#">服务条款</a></li>
          </ul>
        </div>

        <!-- 下载应用部分 -->
        <div class="footer-section">
          <h4 class="footer-title">
            下载移动应用
          </h4>
          <p class="app-text">
            随时随地在手机或平板上学习
          </p>
          <div class="download-buttons">
            <button class="app-button">
              <i class="fa-brands fa-apple" />
              <span>App Store</span>
            </button>
            <button class="app-button">
              <i class="fa-brands fa-google-play" />
              <span>Google Play</span>
            </button>
          </div>
        </div>
      </div>

      <!-- 版权部分 -->
      <div class="copyright-section">
        <p>© 2025 学习平台. 保留所有权利.</p>
        <div class="extra-links">
          <a href="#">隐私政策</a>
          <a href="#">服务条款</a>
          <a href="#">网站地图</a>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup></script>

<style scoped>
.site-footer {
  background: #1a2530;
  color: #f5f7fa;
  padding: 30px 0 0;
  font-family: 'Segoe UI', 'Noto Sans SC', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.footer-section {
  padding: 0 10px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.footer-description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #bdc7d1;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: #4A90E2;
}

/* 链接列表样式 */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  display: inline-block;
  color: #cfd8e3;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* 下载应用部分样式 */
.app-text {
  font-size: 0.85rem;
  color: #bdc7d1;
  margin-bottom: 15px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-button {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.app-button i {
  font-size: 1.2rem;
  margin-right: 12px;
}

.app-button:hover {
  background: #4A90E2;
}

/* 版权部分样式 */
.copyright-section {
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright-section p {
  margin: 0;
  color: #a8b2c0;
  font-size: 0.85rem;
}

.extra-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.extra-links a {
  color: #a8b2c0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.extra-links a:hover {
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-section {
    text-align: left;
  }

  .copyright-section {
    text-align: center;
  }

  .extra-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-section {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .download-buttons {
    max-width: 220px;
    margin: 0 auto;
  }
}
</style>
